﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DONGACS.DTO;
using DONGACS.SERVICE;

namespace QLPKWeb.BussinessDelegate.PhanQuyen
{
    public class PermissionsPublicServiceDelegate
    {
        PermissionsPublicService PermissionsPublicService = new PermissionsPublicService();

        PathsService PathsService = new PathsService();

        public IList<PermissionsPublicDto> GetPermissionsPublic()
        {
            return this.PermissionsPublicService.GetAllPermissionsPublic();
        }

        /// <summary>
        /// Updates the permissions for all users.
        /// </summary>
        /// <param name="PermissionsPublicDtos">The permissions all users dtos.</param>
        public void UpdatePermissionsPublic(IList<PermissionsPublicDto> PermissionsPublicDtos)
        {
            this.PermissionsPublicService.UpdatePermissionsPublic(PermissionsPublicDtos);
        }

        /// <summary>
        /// Gets all module in paths.
        /// </summary>
        /// <returns>A list of Objects</returns>
        public IList<object> GetAllModuleInPaths()
        {
            return this.PathsService.GetAllModuleInPaths();
        }

         public IList<PermissionsPublicDto> GetAllPermissionsPublic()
         {
             return this.PermissionsPublicService.GetAllPermissionsPublic();
         }

         public IList<PathsDto> GetPaths()
         {
             return this.PathsService.GetAllPaths();
         }

    }
}
